import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * business模块-产品-B-录入批次
 */
@Entity('business_product_b_batch')
export class BusinessProductBBatchEntity extends BaseEntity {
  @Index({ unique: true })
  @Column({ comment: '批次编号', length: 50 })
  batchNo: string;

  @Column({ comment: '开始证书编号', length: 50, nullable: true })
  startNo: string;

  @Column({ comment: '结束证书编号', length: 50, nullable: true })
  endNo: string;

  @Column({ comment: '证书数量', default: 0 })
  count: number;

  @Column({ comment: '用户ID' })
  userId: number;
}
